<!DOCTYPE html>
<html lang="en">

<head>
    <title>My BCIT Project</title>
    <meta name="comp2800 template" content="My 2800 App">

    <!------------------------>
    <!-- Required meta tags -->
    <!------------------------>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!------------------------------------------>
    <!-- Bootstrap Library CSS JS CDN go here -->
    <!------------------------------------------>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet"
        crossorigin="anonymous">
       
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.3/js/bootstrap.js"
        crossorigin="anonymous"></script>
        <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-------------------------------------------------------->
    <!-- Firebase 8 Library related CSS, JS, JQuery go here -->
    <!-------------------------------------------------------->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>

    <!-------------------------------------------->
    <!-- Other libraries and styles of your own -->
    <!-------------------------------------------->
    <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
    <!-- <link rel="stylesheet" href="./styles/style.css"> -->
     <style>
        .navbar {
            background-color: lightskyblue;
            /* 导航栏背景色 */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            /* 阴影效果 */
        }

        .navbar-brand {
            display: flex;
            /* 弹性布局，用于水平排列logo和标题 */
            align-items: center;
            /* 垂直居中 */
        }

        .navbar-brand span {
            font-weight: 600;
            /* 标题字体加粗 */
            margin-left: 0.5rem;
            /* 标题与logo间距 */
        }

        .navbar-nav .nav-link {
            /* 继承Bootstrap默认样式，无额外自定义样式 */
        }

        .navbar-nav .nav-link.active {
            /* Bootstrap默认激活状态样式 */
        }

        .btn-outline-success {
            /* 继承Bootstrap按钮样式 */
        }

        footer {
            background-color: #212529;
            /* 深灰色背景（bg-dark类对应Bootstrap默认色） */
            color: white;
            /* 文本颜色 */
            padding: 1rem 0;
            /* 垂直内边距 */
            text-align: center;
            /* 内容居中 */
        }

        footer .container {
            /* 继承Bootstrap容器样式 */
        }

        footer p {
            margin-bottom: 0.5rem;
            /* 版权文本底部间距 */
        }

        footer .mt-2 {
            margin-top: 0.5rem;
            /* 图标区域顶部间距 */
        }

        footer a {
            color: white;
            /* 图标链接颜色 */
            margin: 0 0.5rem;
            /* 图标左右间距 */
            transition: color 0.3s;
            /* 鼠标悬停动画过渡 */
        }

        footer a:hover {
            color: #007bff;
            /* 鼠标悬停时变为蓝色（可自定义） */
        }
     </style>
</head>

<body>
    <!------------------------------>
    <!-- Your HTML Layout go here -->
    <!------------------------------>

    <!-- 导航栏优化 -->
    <nav class="navbar navbar-expand-lg navbar-light" style="background-color: lightskyblue; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
        <div class="container-fluid">
            <a class="navbar-brand d-flex align-items-center" href="#">
                <img src="../images/biaoti.png" height="36" alt="Health Bot Logo">
                <span class="ms-2" style="font-weight: 600;">Health Bot</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                    <li class="nav-item">
                        <a class="nav-link active" href="../aboutus.html">About Us</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="../main.html">Health</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="../history.html">History</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="../delete_user.html">Delete</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="../profile.html">Profile</a>
                    </li>
                </ul>
                <div class="d-flex">
                    <a class="btn btn-outline-success" href="../login.html">
                        <i class="fa fa-sign-out mr-1"></i> Logout
                    </a>
                </div>
            </div>
        </div>
    </nav>

    <!-- the body of your page goes here -->
    <!-- stuff -->

    <div class="container py-4">
        <h1>This is a  History Page For <span id="name-goes-here">my friend</span></h1>
        <div id="history-goes-here" class="row row-cols-auto">
        </div>
    </div>

    <!-- our own footer goes here-->

    <footer class="bg-dark text-white py-3 text-center">
        <div class="container">
            <p>&copy; 2025 Health Bot. All rights reserved.DG2-14</p>
            <div class="mt-2">
                <a href="#" class="text-white mx-2"><i class="fa fa-facebook"></i></a>
                <a href="#" class="text-white mx-2"><i class="fa fa-twitter"></i></a>
                <a href="#" class="text-white mx-2"><i class="fa fa-instagram"></i></a>
            </div>
        </div>
    </footer>

    <template id="postCardTemplate">
        <div class="card py-2 mx-2 bg-light">
            <div class="card-body">
                <div class="row">
                    <div class="col-4">
                        <img class="card-image card-img-left" width=100 height=100 src=" ..." alt="...">
                    </div>
                    <div class="col-6">
                        <h5 class="card-title">Calorie: <span class="count">0</span></h5>
                        <p class="date">placeholder</p>
                        <p class="card-description">placeholder</p>
                    </div>
                    <div class="card-footer"> 
                        <button class="btn editButton" > 
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pencil-square" viewBox="0 0 16 16">
              <path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/>
              <path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"/>
            </svg>
                            </button>
                             <button class="btn deleteButton" > 
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" 
            fill="currentColor" 
                                class="bi bi-x-square" viewBox="0 0 16 16"> 
                                <path 
                                    d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 
            1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" /> 
                                <path 
                                    d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 
            .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708
            .708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708" /> 
                            </svg> 
                        </button> 
                </div>
            </div>
        </div>
    </template>

    <!---------------------------------------------->
    <!-- Your own JavaScript functions go here    -->
    <!---------------------------------------------->
    <script src="./scripts/skeleton.js"></script>
    <script src="./scripts/history.js"></script>
    <!-- <script src="./scripts/script.js"></script> -->

</body>

</html>